package com.wms.model;

import java.sql.Timestamp;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

/**
 * @author This
 * @version 1.0
 * @date 2019/7/10 15:42
 */
public class Order {
    private Integer id;
    private String ordNo;
    private Timestamp ordTime;
    private Byte ordStatus;
    private String products;
    private Product[] productArr;

    private Integer cusId;

    public Integer getCusId() {
        return cusId;
    }

    public void setCusId(Integer cusId) {
        this.cusId = cusId;
    }

    public String getProducts() {
        return products;
    }

    public void setProducts(String products) {
        this.products = products;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrdNo() {
        return ordNo;
    }

    public void setOrdNo(String ordNo) {
        this.ordNo = ordNo;
    }

    public Timestamp getOrdTime() {
        return ordTime;
    }

    public void setOrdTime(Timestamp ordTime) {
        this.ordTime = ordTime;
    }

    public Byte getOrdStatus() {
        return ordStatus;
    }

    public void setOrdStatus(Byte ordStatus) {
        this.ordStatus = ordStatus;
    }

    public Product[] getProductArr() {
        return productArr;
    }

    public void setProductArr(Product[] productArr) {
        this.productArr = productArr;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", ordNo='" + ordNo + '\'' +
                ", ordTime=" + ordTime +
                ", ordStatus=" + ordStatus +
                ", products='" + products + '\'' +
                ", productArr=" + Arrays.toString(productArr) +
                ", cusId=" + cusId +
                '}';
    }
}
